/**
 * Created by congzhang on 17/11/7.
 */


var mongoose = require('./db.js'),
    Schema = mongoose.Schema;


// 视频信息
var VideoSchema = new Schema({
    name : { type: String },               // 名称
    createDate: {type: Date},              // 创建时间
    status: {type: Number},                // 状态  1、新创建 等待转码  2、转码中   3、转码成功
    videoPath: {type: String},             // 上传的视频文件路径
    zhuanmaVideoPath: {type: String}           // 转码后的视频图片的文件路径
});


var Video = mongoose.model('Video', VideoSchema);

exports.Video = Video;
exports.mongoose = mongoose;